package com.design.facade;

import com.design.util.XMLUtil;

/**
 * @author leali
 * @title: FacadeClient
 * @projectName design
 * @description: FacadeClient
 * @date 2022/1/3 0:22
 */
public class FacadeClient {
    public static void main(String[] args) {
        AbstractEncryptFacade abstractEncryptFacade;
        abstractEncryptFacade = (AbstractEncryptFacade) XMLUtil.getValueByTagName("facadeName", 0, true);
        assert abstractEncryptFacade != null;
        abstractEncryptFacade.fileEncrypt("res/src.txt", "res/des.txt");
    }
}
